/*!
    \copyright  Copyright (c) 2022 - 2024 Qualcomm Technologies International, Ltd.
                All Rights Reserved.
                Qualcomm Technologies International, Ltd. Confidential and Proprietary.
    \file
    \addtogroup handset_service
    @{
    \brief
*/

#ifndef HANDSET_SERVICE_ADVERTISING_H_
#define HANDSET_SERVICE_ADVERTISING_H_

/*! \brief Update the decision to advertise based on the current
     and max number of LE connections

    \return TRUE if the update was successful, else FALSE
*/
bool HandsetService_UpdateAdvertising(void);

#ifdef ENABLE_LE_CONNECTION_BARGE_IN

/*! \brief Handle timed message to enable truncated connectable advertisement */
void HandsetService_HandleInternalTruncatedAdvertEnable(void);

/*! \brief Disable truncated advertising

    \return TRUE if the disable request is placed, FALSE otherwise
*/
void HandsetService_DisableTruncatedAdvertising(void);

/*! \brief Restart LE connection Barge-in enable timer

    \param delay Time delay(in milliseconds) to restart LE barge-in enable timer.
 */
void HandsetService_RestartLeBargeInEnableTimer(uint32 delay);

#endif /* ENABLE_LE_CONNECTION_BARGE_IN */
#endif /* HANDSET_SERVICE_ADVERTISING_H_ */
/*! @} */
